-- GENERATED SPELL FOR [Steamwheedle Bruiser] --


function spell0_16096(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16096', 5291, 1)
end

function spell1_16096(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16096', 619, 1)
end

function Sorts_16096(pUnit, Event)
local choix_sorts_16096 = math.random(0, 1)
if choix_sorts_16096 == 0 then
pUnit:RegisterEvent('spell0_16096', 1, 1)
end
if choix_sorts_16096 == 1 then
pUnit:RegisterEvent('spell1_16096', 1, 1)
end
end

function mob16096_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16096', math.random(1500, 3000), 1)
end

function mob16096_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16096_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16096_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16096, 1, 'mob16096_Action')
RegisterUnitEvent(16096, 2, 'mob16096_Leave')
RegisterUnitEvent(16096, 3, 'mob16096_Kill')
RegisterUnitEvent(16096, 4, 'mob16096_Die')
